package com.example.manager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model.dto.system.LoginDto;
import com.example.model.dto.system.SysUserDto;
import com.example.model.entity.system.SysUser;
import com.example.model.vo.system.LoginVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SysUserService extends IService<SysUser> {

    /**
     * jwt  + redis 实现单点登录
     * @param loginDto
     * @return
     */
    //用户登录
    LoginVo login(LoginDto loginDto);
    

    //用户退出
    void logout(String token);


    SysUser getUserInfo(HttpServletRequest request);

    Page<SysUser> findAllSysUser(SysUserDto sysUserDto);

    void deleteBatch(List<Long> idList);

    void saveUser(SysUser sysUser);

    void updatePassword(SysUser sysUser);
}
